package com.wdb007.venus.svc.biz.utils;

import org.springframework.util.ObjectUtils;

import com.wdb007.venus.svc.facade.constant.RspCodeEnum;
import com.wdb007.venus.svc.facade.exception.BizException;

public class ExceptionUtils {

	public static void checkIsNull(Object obj, String key) throws BizException {
		if(ObjectUtils.isEmpty(obj)) {
			throw new BizException(RspCodeEnum.PARAM_CHECK_IS_NULL.setRspMessage(key));
		}
	}
}
